package com.fellansoft.moviescollection.utils;

import android.content.Context;

/**
 * Created by IntelliJ IDEA.
 * User: Edy
 * Date: 14.05.2012
 * Time: 22:47
 * To change this template use File | Settings | File Templates.
 */
public class ApplicationVariables {

    public static enum RequestMoviesTypes {
        GENRES, ALPHABETICALLY, RELEASE_YEAR, COLLECTIONS
    }

    /**
     * Display width
     */
    private static int displayWidth;

    /**
     * Display height
     */
    private static int displayHeight;

    /**
     * Application context
     */
    private static Context applicationContext;

    /**
     * The width of the display is returned
     * @return Display's width
     */
    public static int getDisplayWidth() {
        return displayWidth;
    }

    /**
     * The width of the display is set
     * @param displayWidth The width to be set
     */
    public static void setDisplayWidth(int displayWidth) {
        ApplicationVariables.displayWidth = displayWidth;
    }

    /**
     * The height of the display is returned
     * @return Display's height
     */
    public static int getDisplayHeight() {
        return displayHeight;
    }

    /**
     * The height of the display is set
     * @param displayHeight The height to be set
     */
    public static void setDisplayHeight(int displayHeight) {
        ApplicationVariables.displayHeight = displayHeight;
    }

    /**
     * The context of the application is returned
     * @return Application's context
     */
    public static Context getApplicationContext() {
        return applicationContext;
    }

    /**
     * The context of the application is set
     * @param context The context to be set
     */
    public static void setApplicationContext(Context context) {
        applicationContext = context;
    }
}
